package jpg5.jpg5zad2.plytkie_klonowanie;

public class Main {

    public static void main(String[] args) throws CloneNotSupportedException {
        Point point1 = new Point(1.0,2.5);
        Point point2 = (Point) point1.clone();

        System.out.println(point1.toString());
        System.out.println(point2.toString());

        point1.setX(3.2);

        System.out.println("Po zmianie");
        System.out.println(point1.toString());
        System.out.println(point2.toString());
    }
}


